#ifndef QSETTINGSIHM_H
#define QSETTINGSIHM_H

#include <QWidget>
#include "qmainsettings.h"
#include "qeditablesettings.h"
#include "settings_define.h"
#include "ui_qsettingsihm.h"

class QSettingsIHM : public QWidget
{
	Q_OBJECT

public:
	QSettingsIHM(QWidget *parent = 0);
	~QSettingsIHM();
public slots:
	void acceptSettings();
	void hideAndQuit();
signals:
	void quitSettings();
	
private:
	void clearLayout(QVBoxLayout* layout);
	QString rawToUse(QString raw) { return raw.replace('_',' ').append(": "); }
	QString useToRaw(QString use) { return use.replace(' ','_').remove(": "); }
	Ui::QSettingsIHMClass ui;
	
	QHash<QString,quint8> m_pageSettings;
	QHash<quint8,QVBoxLayout*> m_layouts;
};

#endif // QSETTINGSIHM_H
